package com.chnagli06.method_more;

import java.util.Scanner;

public class MyArraysTest {
    public static void main(String[] args) {
        int [] arr1 = new int [] {23,34,545,4545,213,12312,254};
        MyArrays method = new MyArrays();
        String [] ways = new String  []{"asc","desc"};
        Scanner sc = new Scanner(System.in);
        int way = sc.nextInt();//0->升序----1->降序
        method.sort(arr1,ways[way]);
        for(int i=0; i<arr1.length; i++){
            System.out.print(arr1[i]+"\t");
        }
    }
}
